//
//  NITimer.h
//  HavalConnect
//
//  Created by nanding on 17/5/12.
//  Copyright © 2017年 mengy. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^countDownCallback) (BOOL finish, NSString *leftTime, dispatch_source_t gcdTimer);

@interface NITimer : NSObject
{
}

/**
 倒计时

 @param totalTime 总时间
 @param callback 回调（YES为完成倒计时）
 */
- (void)countDownWithTotalTime:(int)totalTime
                                   callback:(countDownCallback)callback;



/**
 停止倒计时
 */
- (void)cancelCountDown:(dispatch_source_t)gcdTimer;


@end
